<%@page import="com.kh.pajx.sop.util.common.FormatDate"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<%
	String path = request.getContextPath();
	String temp_str = FormatDate.getUseDate(new Date());
%>

	<table id="table" border="1" align="center" class="list">
                      <c:if test="${orderType==1}">
                      	<thead>
                        <tr >
                       <th rowspan="2">学校名称</th>
                       <th rowspan="2">结算日期</th>
						<th rowspan="2">总人数</th>
						<th colspan="4" style="text-align:center">有效用户数</th>
						<th colspan="2" style="text-align:center">客户经理结算</th>
						<th colspan="2" style="text-align:center">学校现金返还</th>
						<th colspan="2" style="text-align:center">学校话费返还</th>
						<th colspan="2" style="text-align:center">管理员费用</th>
						<th rowspan="2">备注</th>
                       </tr>
                       <tr>
                       	<th>本期</th>
                       	<th>上期</th>
                       	<th>新增</th>
                       	<th>开通率</th>
                       	<th>申请金额</th>
                       	<th>批复金额</th>
                       	<th>申请金额</th>
                       	<th>批复金额</th>
                       	<th>申请金额</th>
                       	<th>批复金额</th>
                       	<th>申请金额</th>
                       	<th>批复金额</th>
                       	</tr>
                       	</thead>
			        <tbody id="order">
				      <c:forEach items="${orderList}" var="fb" >
				      <tr>
				      <td>${fb.hsSclName}</td>
				       <td><f:parseDate value="${fb.ywEndDate}"
									pattern="yyyyMMdd" var="test" /> <f:formatDate
									value="${test}" pattern="yyyy-MM-dd" /></td>
				        <td>${fb.ywPopSumNum}</td>
				         <td>${fb.ywBvuserNum}</td>
				          <td>${fb.ywPastBvuserNum}</td>
				           <td>${fb.ywBaddNum}</td>
				            <td>${fb.ywBuseRate}</td>
				             <td>${fb.ywCustomCost}</td>
				              <td>${fb.ywCustomPay}</td>
				               <td>${fb.ywSchoolCost}</td>
				                <td>${fb.ywSchoolPay}</td>
				                 <td>${fb.ywPhoneCost}</td>
				                  <td>${fb.ywPhonePay}</td>
				                  <td>${fb.ywSysoperCost}</td>
				                 <td>${fb.ywSysoperPay}</td>
				                  <td>${fb.describe}</td>
				      </tr>
				      </c:forEach>
				      </tbody>
                       	</c:if>
                       	 <c:if test="${orderType==2}">
                       	 <thead>
                        <tr >
                       <th rowspan="2">地区名称</th>
                       <th rowspan="2">结算日期</th>
                       <th rowspan="2">学校数量</th>
						<th rowspan="2">总人数</th>
						<th colspan="4" style="text-align:center">有效用户数</th>
						<th colspan="2" style="text-align:center">行业经理结算</th>
						<th rowspan="2">备注</th>
                       </tr>
                       <tr>
                       	<th>本期</th>
                       	<th>上期</th>
                       	<th>新增</th>
                       	<th>开通率</th>
                       	<th>申请金额</th>
                       	<th>批复金额</th>
                       	</tr>
                       	 </thead>
			        <tbody id="order">
				      <c:forEach items="${orderList}" var="fb" >
				      <tr>
				      <td>${fb.areaName}</td>
				      <td><f:parseDate value="${fb.ywEndDate}"
									pattern="yyyyMMdd" var="test" /> <f:formatDate
									value="${test}" pattern="yyyy-MM-dd" /></td>
				          <td>${fb.ywSchoolNum}</td>
				           <td>${fb.ywPopSumNum}</td>
				            <td>${fb.ywVuserNum}</td>
				             <td>${fb.ywPastVuserNum}</td>
				              <td>${fb.ywAddNum}</td>
				               <td>${fb.ywUseRate}</td>
				                <td>${fb.ywRoyalty}</td>
				                 <td>${fb.ywRoyaltyPay}</td>
				                  <td>${fb.describe}</td>
				                  </tr>
				      </c:forEach>
				      </tbody>
                       	</c:if>
	</table>
